A Software Engineer Learns HTML5, JavaScript and jQuery: A guide to standards-based web applications by Dane Cameron
Author:Dane Cameron
Language: eng
Format: mobi, azw3, epub, pdf
Publisher: Cisdal Publishing
Published: 2013-10-29T23:00:00+00:00
Another very useful feature of the debugger is the pause button at the bottom of the menu:
If you click this once it will turn blue. This will cause the debugger to automatically pause on any exception – including handled exceptions.
If you click it once more it will turn purple. This will cause the debugger to automatically pause on all unhandled exceptions. This is very useful, since it is not always obvious that a JavaScript error has occurred. As long as this setting is in place, and you always run the application with the development tools open, you will not miss any errors, and will be able to debug them while they are occurring.
In order to see this in action, remove the existing breakpoint, and change the code:
$('#btnAddTask').click(function(evt) {
evt.preventDefault();
$('#taskCreation').removeClass('not');
});
to
$('#btnAddTask').click(function(evt) {
evt.callUnknownFunction();
$('#taskCreation').removeClass('not');
});
Since JavaScript is not a type checked language, it is not until run-time that an exception will be caused by this line. If you now refresh the screen and click the “Add task” button you will see that the debugger automatically stops on this line:
Download
A Software Engineer Learns HTML5, JavaScript and jQuery: A guide to standards-based web applications by Dane Cameron.azw3
A Software Engineer Learns HTML5, JavaScript and jQuery: A guide to standards-based web applications by Dane Cameron.epub
A Software Engineer Learns HTML5, JavaScript and jQuery: A guide to standards-based web applications by Dane Cameron.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Whiskies (Collins Gem) by dominic roskrow(45074)
Spell It Out by David Crystal(36041)
Cecilia; Or, Memoirs of an Heiress — Volume 1 by Fanny Burney(32434)
Cecilia; Or, Memoirs of an Heiress — Volume 2 by Fanny Burney(31871)
Cecilia; Or, Memoirs of an Heiress — Volume 3 by Fanny Burney(31856)
Beautiful Disaster by McGuire Jamie(25252)
Trainspotting by Irvine Welsh(21519)
Chic & Unique Celebration Cakes by Zoe Clark(19960)
The Secret History by Donna Tartt(18846)
How High Can a Kangaroo Hop? by Jackie French(18771)
Twilight of the Idols With the Antichrist and Ecce Homo by Friedrich Nietzsche(18503)
All the Missing Girls by Megan Miranda(15573)
Cat's cradle by Kurt Vonnegut(15185)
Ready Player One by Cline Ernest(14525)
Fifty Shades Freed by E L James(13157)
For the Love of Europe by Rick Steves(13000)
4 3 2 1: A Novel by Paul Auster(12284)
Crooked Kingdom: Book 2 (Six of Crows) by Bardugo Leigh(12218)
Grundlagen Kreatives Schreiben (German Edition) by Helfferich Pia(10406)